<template>
  <div class="advice-wrap"
       v-if="$store.state.leaderAdvise.length">
    <div class="title">{{title}}</div>
    <div class="content">
      <div class="item fold-hide"
           v-for="item in $store.state.leaderAdvise">
        <div class="top">
          {{item.userInfo.linkdoodName}}
          <phone-call :item="item"></phone-call>
          <br/>
          [{{item[status] | todayStatus}}]
          <span class="time">{{item.createTime}}</span>
        </div>
        <pre class="txt" v-html="item.advice"></pre>
      </div>
    </div>
    <foldWrap :list="$store.state.leaderAdvise"></foldWrap>
  </div>
</template>

<script>
  import foldWrap from "../commonComponents/fold.vue"
  import phoneCall from "./phoneCall"
  import actionSheetTalk from "./actionSheetTalk.vue"

  export default {
    props:{
      title:{
        default:"请示意见"
      },
      status:{
        default:"approvalStatue"
      },
    },
    data(){
      return{
        actionData:_data.actionDataTalk,
        actionShow:false,
      }
    },
    components: {
      foldWrap,
      actionSheetTalk,
      phoneCall,
    },
  }
</script>
